package simple15.observer;

/**
 * 自定义的观察者模式
 */
public class Simple {
    public static void main(String[] args) {
        MangoAttention attentions = new MangoAttention();
        attentions.add(new CustomerObserver("张三"));
        attentions.add(new CustomerObserver("李四"));
        attentions.add(new CustomerObserver("王五"));
        attentions.add(new CustomerObserver("赵六"));
        attentions.perform();
    }
}
